package com.hausen.gulimall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 *  调用远程服务
 *  1、引入openfeign依赖
 *  2、编写接口、告诉 spingcloud 调用哪个远程服务
 *  3、使用 @EnableFeignClients 注解使openfeign生效，并告诉远程接口所在位置
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.hausen.gulimall.member.feign")
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
